

import '../utils/tools.dart';

class ImageModel{
  int id;
  String title;
  String image;
  String description;
  int sort;

  int articleId;
  int productId;

  ImageModel.fromJson(Map image){
    this.id = image['id'];
    this.title = image['title'];
    this.description = image['description'];
    this.image = Tools.fixImageUrl(image['image']);
    this.sort = image['sort'];
    
    this.articleId = image['article_id'];
    this.productId = image['product_id'];
  }
}